package com.nowcoder;

import java.util.Scanner;

/**
 *人民币转换
 */
public class RMBConvert {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String line = in.nextLine();
        String bigNum[] = { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖" };
        String numUnit[] = { "", "拾", "佰", "仟", "万", "拾", "佰", "仟", "亿", "拾", "佰", "仟" };
        String rmbUnit[] = { "元", "角", "分" };
        String ss[] = line.split("\\.");
        StringBuilder builder = new StringBuilder();
        if (ss[0].charAt(0) != '0') {
            for (int i = ss[0].length() - 1; i >= 0; i--) {
                int n = Character.getNumericValue(ss[0].charAt(i));
                if (n == 1 && "拾".equals(numUnit[ss[0].length() -1 -i])) {
                    builder.insert(0, numUnit[ss[0].length() -1 -i]);
                } else {
                    builder.insert(0, bigNum[n] + numUnit[ss[0].length() - 1 - i]);
                }
            }
            builder.append(rmbUnit[0]);
        }
        if (ss.length > 1) {
            if ("00".equals(ss[1]) && builder.length() > 0) {
                builder.append("整");
            } else {
                int j = Character.getNumericValue(ss[1].charAt(0));
                if (j > 0) {
                    builder.append(bigNum[j]).append(rmbUnit[1]);
                }
                int f = Character.getNumericValue(ss[1].charAt(1));
                if (f > 0) {
                    builder.append(bigNum[f]).append(rmbUnit[2]);
                }
            }
        }
        System.out.println(builder.insert(0, "人民币").toString());
    }
}
